package com.dzx.design.creational.builder;

/**
 * @author dzx
 * @ClassName:
 * @Description: 建造者模式
 * @date 2019年07月15日 09:00:04
 */
public class Test {

    public static void main(String[] args) {
        Coach coach = new Coach();
        CourseBuilder courseBuilder = new CourseActualBuilder();
        coach.setCourseBuilder(courseBuilder);
        Course course = coach.makeCourse("java设计模式精讲", "java设计模式精讲PPT",
                "java设计模式精讲视频", "java设计模式精讲手记", "java设计模式精讲问答");
        System.out.println(course);


    }
}
